/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cleber.pojos;

import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author Santos
 */
@Entity
@Table(name="empresa")
public class Empresa {
    @Id
    @GeneratedValue
    private Integer id;
    @OneToMany
    private List<Usuario> usuarios;
    private String nome;
    private String cnpj; 
    private String rua;
    private Integer numero;
    private String complemento;
    private String bairro;
    private String cidade;
    private String estado;
    private String ativo;
    @Column(name="data_cadastro")    
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date dataCadastro;
}
